import {BaseController} from './BaseController'
import {LoginModel} from '../Model/LoginModel'
import {UserModel} from '../Model/UserModel'

class LoginController extends BaseController {
    constructor() {
        super()
    }

    login(type,option) {
        let userModel=UserModel.getUser(type,option)
        let loginModel=new LoginModel(userModel)
        loginModel.save()
        return JSON.stringify(userModel)
    }
}

export {LoginController}